#!/usr/bin/env python
# coding: utf-8

pre_fix = 'controllers.'

urls = (
	"/", 			    pre_fix + 'welcome.Index',
    "/login",                       pre_fix + 'welcome.Login',
    "/logout",                      pre_fix + 'welcome.Logout',
    '/stations',                       pre_fix + 'stations.Index',
    '/stations/new',                   pre_fix + 'stations.New',
    '/stations/create',                pre_fix + 'stations.Create',
    '/stations/(\d+)',                 pre_fix + 'stations.View',
    '/stations/(\d+)/edit',            pre_fix + 'stations.Edit',
    '/stations/(\d+)/delete',          pre_fix + 'stations.Delete',

    '/raw_data',               pre_fix + 'raw_data.Index',
    '/raw_data/index/(\d+)',         pre_fix + 'raw_data.Index',#分页
    '/raw_data/export',               pre_fix + 'raw_data.Export',
    '/hour_data',               pre_fix + 'hour_data.Index',
    '/hour_data/index/(\d+)',         pre_fix + 'hour_data.Index',#分页
    '/hour_data/export',               pre_fix + 'hour_data.Export',
    '/hour_data/month_group/',         pre_fix + 'hour_data.MonthGroup',
    '/hour_data/month_group/(\d+)',         pre_fix + 'hour_data.MonthGroup',#分页
    '/hour_data/month_group_export',        pre_fix + 'hour_data.MonthGroupExport',
    '/day_data',               pre_fix + 'day_data.Index',
    '/day_data/index/(\d+)',         pre_fix + 'day_data.Index',#分页
    '/day_data/export',               pre_fix + 'day_data.Export',
    '/month_data',               pre_fix + 'month_data.Index',
    '/month_data/index/(\d+)',         pre_fix + 'month_data.Index',#分页
    '/month_data/export',               pre_fix + 'month_data.Export',

    '/type_charts/selected_hour_chart',              pre_fix + 'type_charts.SelectedHourChart',
    '/type_charts/date_range_chart',   pre_fix + 'type_charts.DateRangeChart',
    '/charts/day_chart',              pre_fix + 'charts.DayChart',
    '/charts/month_chart',          pre_fix + 'charts.MonthChart',
    '/hour_charts/hour_group_day_chart',              pre_fix + 'hour_charts.HourGroupDayChart',
    '/hour_charts/hour_group_month_chart',          pre_fix + 'hour_charts.HourGroupMonthChart',

    '/alarms',                       pre_fix + 'alarms.Index',
    '/alarms/new',                   pre_fix + 'alarms.New',
    '/alarms/create',                pre_fix + 'alarms.Create',
    '/alarms/(\d+)',                 pre_fix + 'alarms.View',
    '/alarms/(\d+)/edit',            pre_fix + 'alarms.Edit',
    '/alarms/(\d+)/delete',          pre_fix + 'alarms.Delete',

    '/users',                       pre_fix + 'users.Index',
    '/users/new',                   pre_fix + 'users.New',
    '/users/create',                pre_fix + 'users.Create',
    '/users/(\d+)',                 pre_fix + 'users.View',
    '/users/(\d+)/edit',            pre_fix + 'users.Edit',
    '/users/(\d+)/delete',          pre_fix + 'users.Delete',

    '/system/setting',              pre_fix + 'sysinfo.Index',
    '/system/update_setting',       pre_fix + 'sysinfo.UpdateSetting',
    '/system/change_channel',       pre_fix + 'sysinfo.ChangeChannel',
    '/system/upgrade',              pre_fix + 'sysinfo.Upgrade',
    '/system/change_password',      pre_fix + 'sysinfo.ChangePassword',
    '/system/doreboot',             pre_fix + 'sysinfo.DoReboot',
    '/system/backup',               pre_fix + 'sysinfo.Backup',
    '/system/download',             pre_fix + 'sysinfo.Download',
	)
